package com.zhkc.iess.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhkc.wisdom.common.mybatis.encrypt.annotation.EncryptField;
import com.zhkc.wisdom.common.mybatis.encrypt.annotation.SensitiveClass;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author lk
 * @since 2023-11-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sys_user")
@SensitiveClass
public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = -9188678856971805675L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户账号
     */
    private String userAccount;

    /**
     * 用户密码
     */
    @EncryptField
    private String userPassword;

    /**
     * 手机号
     */
    @EncryptField
    private String userPhone;

}
